package com.easybuy.service;

import java.util.List;

import com.easybuy.entity.Product;

public interface ProductService {

	/***
	 * 
	 * @param categoryId
	 * @param categoryLevel
	 * @param currPage 当前页码
	 * @param pageSize 页面大小
	 * @return
	 */
	List<Product> findByCategoryId(int categoryId,int categoryLevel,int currPage, int pageSize);

	int findCountByCategoryId(int categoryId,int categoryLevel);

	Product findById(int id);
	
	int subStock(int productId,int quantity);

	List<Product> findList(int currPageNo, int pageSize);

	int findCount();
}
